import { upload } from '@/utils/request.js'
// import { request } from "@/utils/request.js";

// export function upload(data) {
//   return request({
//     url: '/api/v1/system/upload',
//     method: 'POST',
//     data
//   })
// }

// 上传文件
export function uploadInfo(file) {
  return upload({
    url: '/api/v1/hospital/upload', // 补全域名如需
    filePath: file.path || file.tempFilePath,
    name: 'file',
    formData: {} // 如需额外参数可加
  });
}